Modified image upload