fix image pattern
update test case for image hash