png: encoder: fix row offset calculation