Test some cache functionality
Concluded cache functionality
Corrected Error in name of cache file
Added cache feature for various items also
Added new function to calculate image dimensions
Small corrections
Special treatment of type movie
Some codesize improvements
Changed modes of special purpose files.