PNG screenshot writing