Create ImageSurface using format integer
Copy a rectangular region