Added code for json, image and file storage