saving and loading images as base64 strings