add flag images to output