Implement LevelOfDetail optimization for frame cache
Now the frame cache is generated at the current level of detail, but not bigger than 2500px