Fixed some bugs with perPixelTrack function

The function was still expect “ind” and “indPoints” to be present,
which introduced errors when the program is run in one go.