[BUGFIX] Add needed setting to handle file_references correctly

The ImageViewHelper needs the setting 'treatIdAsReference' to
handle file_references correctly.

Change-Id: I4aa8ea8e50147a7f3b8d4b5695b6d37bd4ce501f
Fixes: #43964
Releases: 6.0, 6.1
Reviewed-on: https://review.typo3.org/17152
Reviewed-by: Sebastian Michaelsen
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters