int open_image(string type, string source, string data, int width, int height, int components, int bpc, string params)