added customizable scale bar for issue #29