Added basic preview sizing.
Removed obsolete logic.