fix image uploading