Change flags from image url to base64 strings