prevent NPE for posts without an image. closes #66.
enter and display categories for #20