Fix broken links in media library if not serving from S3 and local file removed

* Record if local file remains in s3 metadata. 
* Serve the image from S3 if setting checked or a local file doesn't exist. 

Resolves #67