updated for the image type