fix for unable to upload image