function to trace cell movement from a 2d image file