Fix for AtlasData memory leak using rectangle caching.