Getting stuck on scan_image