now returns base64 encoded string for image