fixes image file uploads