Images are now deleted on disk when deleted in new posts. Not the best solution but it works.
Okay while I'm still working on the metadata, I just noticed this flaw. eg full=../../../../../../../etc/passwd
Metadata is now deleted as a photo is deleted.
Oops. That last commit didn't actually delete files on disk, thanks to my escaping. Really should have been doing it this way all along. So much cleaner.
Merge pull request #111 from Wingar/local_photo_delete

Images deleted on disk when deleted in posts. Issue #88 resolved.