updated License info in all files
fixed check on cachingEnabled when generating image