Yep, this call should be in ImageViewer. I added the require() here since we didn't have a register function at that time. Now is the time to remove that require().