small wrapper for png