XSIZE - full image width.
YSIZE - full image height.