image tools: check error