Added track fcn and changed the signature of image processing fcn