Fixed issue with image upload