reading lena.hex which is 512 x 512 image