PNG: add support for indexed color images (close #159)