Made changes for uploading images