Fixes to upload image