Fixes for user image upload