Fix image captions and titles
Re-add preloadImages which was accidentally dropped