Added show preview checkbox. Renamed onSubmitForm() to setImage(), and wired this to the new checkbox.