Save files based on file extension
Save files based on file extension

In SW-34711 (11b8e94), the code to Save an image was change to make
a copy first before saving the Image.  At the same time, there was
word to ensure that files were stored in a web-friendly format
(jpg or png).  However, the extension of the output file was not
changed and the format silently changed. Also, the format of the
originally loaded image was used to determine the output file
format.  To make matters worse, WeSay would always change the
extension to png.  So the only files that would correctly get
imported were png files (even though the dialog allowed for
png, tif, bmp, and jpg).

This changes the PalasoImage.Save method to look at the extension
of the file name used to save the image to determine the format
that will be used.  A helper method is added to assist the caller
if they choose to use a web-friendly format extension (called by
WeSay).

tombogle/libpalaso,andrew-polk/libpalaso,sillsdev/libpalaso,andrew-polk/libpalaso,sillsdev/libpalaso,mccarthyrb/libpalaso,ermshiperete/libpalaso,hatton/libpalaso,sillsdev/libpalaso,chrisvire/libpalaso,glasseyes/libpalaso,darcywong00/libpalaso,JohnThomson/libpalaso,tombogle/libpalaso,ddaspit/libpalaso,darcywong00/libpalaso,sillsdev/libpalaso,gmartin7/libpalaso,glasseyes/libpalaso,ddaspit/libpalaso,gmartin7/libpalaso,ddaspit/libpalaso,chrisvire/libpalaso,tombogle/libpalaso,JohnThomson/libpalaso,JohnThomson/libpalaso,andrew-polk/libpalaso,andrew-polk/libpalaso,gtryus/libpalaso,hatton/libpalaso,chrisvire/libpalaso,mccarthyrb/libpalaso,gtryus/libpalaso,ddaspit/libpalaso,ermshiperete/libpalaso,chrisvire/libpalaso,glasseyes/libpalaso,gtryus/libpalaso,ermshiperete/libpalaso,mccarthyrb/libpalaso,gmartin7/libpalaso,hatton/libpalaso,tombogle/libpalaso,gtryus/libpalaso,mccarthyrb/libpalaso,darcywong00/libpalaso,ermshiperete/libpalaso,gmartin7/libpalaso,JohnThomson/libpalaso,hatton/libpalaso,glasseyes/libpalaso