fix image regexp