correct uploaded image file format