A computer readable medium storing a program causing a computer to execute a process for image generation, the process comprising;
- coding image identification information, to identify an image formed on a recording material, and coordinate value information on the recording material;
- obtaining a first numerical value corresponding to a first code block containing encoded coordinate value information;
- obtaining a second numerical value from a second code block containing encoded image identification information;
- obtaining a third numerical value by adding the first numerical value to the second numerical value;
- replacing the first numerical value with the third numerical value;
- and
- forming a background image on the recording material, the background image being a coded pattern made up of a plurality of code blocks, each code block containing one of a plurality of pattern configurations, each of the pattern configurations having a corresponding numerical code value, and the coded pattern containing the image identification information and the coordinate value information.