throw error when img is not exist
update testcase