fixed #179

Also resets the image form to preview mode after changing picture