debugging image error