Add hook to control rendering of images a little more