use this extension to encode the image and save it in tinyDB and then whenever you want to show your image just decode that code using this extension
or watch this tutorial