Added ability to change preview size