added support for category images and a conditional check function for categories so that the body class thing could be added closes #27