Auto-set aspect ratio of preview