Reverted previwer.py to fabb0ac7346573a01cea0c85572894f3ef0d5658