parse mainimagepath, track cachesize
cache categories.  fix image cache