Uses a node-gd image object to create a two-dimensional array of pixel objects