Parse the image and get the data