#5178: Fix crappy hook implementation.
Merge pull request #5182 from openscholar/5178-image_video_rendering

Fix incorrect hook implementation.