1. An image processing apparatus comprising: using a processor to perform; a determination unit configured to determine whether an accelerator for creating edge data from compressed image is present; a holding unit configured, when the determination unit determines the accelerator is present, to compress, without edging, a first image generated based in print data, to create an intermediate code including the compressed first image and to hold the created intermediate code, when the determination unit determines the accelerator is not present, to edge the first image generated based on print data, to create an intermediate code including the edged first image and to hold the created intermediate code; and a generating unit configured, when the accelerator is present, to create edge data based on the compressed first image included in the intermediate code held by the holding unit, to generate a second image based on the created edge data, when the accelerator is not present, to generate the second image based on the edged first image included in the intermediate code held by the holding unit.