Hooks for merging the image fetching code