Preview: Fixes for automatic resize