fix image upload failure when image has file extension suggestion