getImagePixels
Extract a pixel array from a loaded image. Draws the image into a canvas so it can read the pixels back.
Return
The pixels of the image.
Parameters
image
The image to extract pixels from.
width
The width of the image. If not defined, then image.width is assigned.
height
The height of the image. If not defined, then image.height is assigned.