base64 encode images from RServe

- Better configuration