added distance from origin. working on distance from previous frame [distance fixed to pixels].