More generic way to add graphs to reports

![report-graphs](https://f.cloud.github.com/assets/249606/617160/0209298e-ce8a-11e2-8726-d33539e51670.png)