convert loading.gif to base64 data