Creates an icon from the current content of the screen within the rectangle x1,y1,x2,y2) and stores it in the array a.