encode icons as bas64