Working on PNG writer