fix image file upload