Scan the image