add getpixel function for cartesian coordinate system (cgetpixel())