fix image upload issue