working with mozilla's metricsgraphics library