alternative method for computing scale to fix distance and scalebar issues