fix image path regex