some general thumb image cache improvments