Changed drawTrackedObject function to findCenter function and moved confidence calculations into callback function.