Image precaching