A PNG writer class.