using a display memory for image processing