Gets the image X and Y resolution.