Image forming apparatus, the processing method of the image forming apparatus, a computer program and a computer-readable recording medium