Provided getDpi function.
Merge branch 'master' of github.com:willvousden/mpltex