fixed preview streching and parameter setup