Fixing an issue with image upload.