fixing uploading images