image err checks