fix image upload problem