png: add encoder
png: split up assignment and comparison