changed reindex command to deal with problems reindexing in 4 image mode