Add support for png compression

Fixes #17.