get pixel matrix