Make the test use PNG, the JPEG encoding output varies slightly depending on the version of the jpeg library used, so it's not stable across platforms