fix image inserting