PNG: support lineMode=slope|staircase|staircase

staircase is not implemented
PNG: don't reserve memory for all points for every line