Incorporate my changes!

Hay dood.

I was toying with your ImageProfiler code and made some changes. It still functions exactly the same, as was my intention. I just cleaned up some things, and made some other things more Pythonic. Thought you might enjoy seeing my thought process over the last dozen commits.