Fixed how images are cached