[Feature]Make the preview's resolution the same as recording file
[Other]Reconstruct some code about preview and storage