Added ajax call for loading and saving and uploading of image