png comparision function

This is a simple function that compares a mpl figure instance to a saved png file.

I was initially intending to make this a decorator, but I couldn't work out how to get a fig instance from the function being decorated into this function. perhaps one of our resident python experts might be able to help @derdon @segfaulthunter??