Added loop for debugging output of the image to an array.
Added loop for debugging output of the image to an array.

alanwsmith/document.write-image-loader,alanwsmith/document.write-image-loader,alanwsmith/doc-write-image-loader,alanwsmith/doc-write-image-loader,alanwsmith/doc-write-image-loader