Fix tests: Don't rely on equal binary data

Tests relied on the files being exactly the same - on a binary level. That made them fail on Travis CI, because I can't make sure that the exact same version of imagemagick is installed on travis and my machine. Now tests should just compare the width of the generated images.