Fixed image corruption by doing a base64 decode

Fixes the image corruption part of rapidftr/tracker#106