use id instead of title for category image urls

This fixes issues with unicode, spaces and underscores.