A device tor printing an image comprising: an electrophotographic engine comprising: a photoreceptor with a photoreceptor surface; a charging station that charges the photoconductive surface to expose a latent image; a raster scanning system located downstream of the charging station and adapted to illuminate a charged portion of the photoconductive surface to record an electrostatic image thereon; a developing station that applies toner onto the latent image on the photoconductive surface; a transferring station that transfers the toned image onto a recording medium; and a cleaning station that cleans the toner remaining on the photoconductive surface; characterized by an image diagnostic system comprising the raster scanning system which includes at least one light source that illuminates the photoreceptor surface with light with a corresponding pixel clock, for monitoring spatial information, such that light energy is transmitted from the photoreceptor surface; the image diagnostic system further comprising at least one image sensor (18,19) that receives the light energy transmitted from the photoreceptor surface and transforms the light energy into a corresponding spatial image map of the photoreceptor surface; and an image processing system adapted to evaluate the spatial image map of the receptor surface and determines whether an image defect is present. an electrophotographic engine comprising: a photoreceptor with a photoreceptor surface; a charging station that charges the photoconductive surface to expose a latent image; a raster scanning system located downstream of the charging station and adapted to illuminate a charged portion of the photoconductive surface to record an electrostatic image thereon; a developing station that applies toner onto the latent image on the photoconductive surface; a transferring station that transfers the toned image onto a recording medium; and a photoreceptor with a photoreceptor surface; a charging station that charges the photoconductive surface to expose a latent image; a raster scanning system located downstream of the charging station and adapted to illuminate a charged portion of the photoconductive surface to record an electrostatic image thereon; a developing station that applies toner onto the latent image on the photoconductive surface; a transferring station that transfers the toned image onto a recording medium; and a cleaning station that cleans the toner remaining on the photoconductive surface; characterized by an image diagnostic system comprising the raster scanning system which includes at least one light source that illuminates the photoreceptor surface with light with a corresponding pixel clock, for monitoring spatial information, such that light energy is transmitted from the photoreceptor surface; the image diagnostic system further comprising at least one image sensor (18,19) that receives the light energy transmitted from the photoreceptor surface and transforms the light energy into a corresponding spatial image map of the photoreceptor surface; and an image processing system adapted to evaluate the spatial image map of the receptor surface and determines whether an image defect is present.