Add support for nested pages. Add default template for attachment-image.