Improve the readability of ImageWriter._get_colours()
Improve the readability of PngWriter._build_image_data_bd_any()