added preset param to optional display a  preview image