support for images and nested lists