minor tweak to update the image cache in background thread