title: How to get file extension from Save file dialog?
body: <p>I would like to be able to save image according to extension that is entered in the save file dialog. I have found out that simply entering e.g. "JPG" does not cause the Save method to use this format of course.
  Parsing the extension and then using e.g. switch and setting correct format sounds a bit ackward to me. Or there is no better way?</p>