yoda working code, prints obstacles to image