Fixed an issue where changing an Attachment changed all attachments, props @bartoszwww. Fixes #71.
Fixed a scoping issue for targetAttachment when changing an existing attachment