PNG encoding, huzzah; messy tests for same