Adding localStorage functionality for base64 images.