Add functions for handling images on pages