Added preview view and fixed crop parameter setup