fix image edit issue