Simple base64 image encoder