Add in base64 image encoding to build system and move images over to use it

I will be doing plugins next, this is just a rebase of my previous pull from #485