fix test script
break apart fromImage so that it can handle specific coordinates to read from