store image file blob url reference in the client cache on upload and before save
catch any javascript errors
Merge pull request #877 from jay-hodgson/SWC-1248

SWC-1248: store image file blob url reference in the client cache on upload and before save