Fixet: save function

check for valid type of img. file. (tif, tiff)
generate .tiff Thumbs