Added option to use cache or not

There was a need for my project to toggle on and off access for using the image cache. By default, it is YES unless otherwise told.