Image rendering fails after ShowPic patch (#56723)
Since the patch for integrating FAL in the ShowPic functions was commited image rendering fails if lightboxes are enabled in the constants.
The reason seems to be that a file object is passed to the IMG_RESOURCE content object but it only can handle files / uids.
[BUGFIX] Fix resource handling in image rendering
The image rendering configuration of css_styled content is fixed so
that the image reference is correctly passed on through all further
The IMG_RESOURCE content object also accepts file or file reference
objects and will only pass on the file to TemplateService::getFileName()
if GIFBUILDER is used to prevent PHP warnings.
This fixes the image rendering after the imageLinkWrap function was
made FAL aware in #56723.
Reviewed-by: Stefan Neufeind
Reviewed-by: Xavier Perseguers
Reviewed-by: Ernesto Baschny
Tested-by: Ernesto Baschny