Adds check for images and sections