Save first image (if any) as preview image

--
Close #4