image test: throw errors if they occur so we fail early