A non-transitory computer-readable storage medium storing a program for causing a computer to execute a method of controlling an image processing apparatus that includes a printer that prints an image on a sheet and a scanner that reads an image on a sheet, the method comprising:
- causing the scanner to read an image on a sheet;
- causing a display to display the image read by the scanner;
- receiving an instruction for designating a reference image candidate from the image displayed on the display;
- generating the reference image based on the reference image candidate;
- registering the reference image;
- causing the scanner to read an image on a sheet printed by the printer and inspecting the image printed on the sheet based on the read image and the registered reference image;
- and
- in a case that the image read by the scanner is displayed for receiving the instruction and the displayed image is a defective image that contains a defective area, causing the display to display, side by side, (i) a defective image including the defective area that is emphasized and (ii) a defective image including the defective area that is not emphasized.