more changes for uploading images