Added preview saving