it seems rather pointless to encode an image in JSON when the web server could just read it itself