Initial refactor includes regenerating thumbnail information when attachments are saved.