image cache improvements