Fixed failing tests on OSX.
Merge pull request #208 from pelson/osx_tests

Fixed failing image comparison tests on OSX.