Detect images for sphinx based on thumbnail metadata.
Images and categories pages fixes.