Default preview size to 800x600. Refactoring.