change image cache mechanisim