get image data in nice matrix
added new stuff