fix img check