add decodePngAnimation convenience function