quick fix for image type