B64 encode image in the profiler