Added distance calc to GIMP