add get_pixel_row and format_pixel_colours