Cache images on size load