Split image parsing code into separate function. Don't show empty <image> elements.