Issue 720: edited shape tag is not marked as modified after replacing the image