fix type for image uploads