make image_data a class of its own