Tidy up some code in PngWriter._build_image_data_bd1_nt_1udg()