consider png signature
add assert_encoding helper
Merge pull request #2 from Joe-noh/png-signature