Tweaks error-reporting in image assertion script