Load title images in DOM instead of in script