Clear any orphan thumbnail before saving a new one
Delete the thumbnail on the resource base delete
Merge pull request #994 from simod/issue-993

Clear any orphan thumbnail before saving a new one