A non-transitory computer-readable medium storing a program therein, which when executed, causes a computer to perform a process comprising:
- reading a first image on a first surface of a sheet and a second image on a second surface of the sheet and generating first and second image data from the first and second surfaces, respectively;
- detecting a double feed of the sheet;
- determining, based on the first and second image data, whether the first image is at a first edge of the first surface and the second image is at a second edge of the second surface of the sheet only if the double feed of the sheet has been detected;
- if the double fee of the sheet has been detected, combining the first and second image data into combined image data corresponding to the first and second images when both the first image is at the first edge and the second image is at the second edge;
- and
- processing the combined image data such that a combined image corresponding to the combined image data has a predetermined size.