Simplify PngWriter._build_image_data_bd2()