Resolved by fixing script.
Thank you very much for your help.
Great to hear you have resolve your problem here.
Oops! Still am having a problem. Need to re-write script so 1X1 pixel rectangles are 8X8 pixels. Also, need to then change canvas size to match.
Not sure how to do this.
Can you take a look and suggest how I can re-write to get 8X8 pixel rectangles?
Thank you very much.