Better errors for unbounded access to input/output images.