Improved error checking in SWDF_clean_image_cache()

The function now checks that settings have been loaded, and will no longer attempt to clean the cache if caching has been disabled (unless the second parameter is set to true).
Image caching is now disabled by default in the example_config file