trying to fix some import issues and the ability to display pages without images