fix bug with multi-day image cacheing