debugging caltech image error