Creates an image based on the pixels pointed at by the cursor