[BUGFIX] Add needed setting to handle file_references correctly

The Uri.Image ViewHelper needs the setting 'treatIdAsReference' to
handle file_references correctly.

Change-Id: Ia3df9dffd801e5f88343d60bcc352e39e89179ee
Fixes: #44222
Releases: 6.0, 6.1
Reviewed-on: https://review.typo3.org/17274
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters