Corrects a problem introduced by a401e666. A lossy write is now done before writing the EXIF metadata. Also, we now give the choice of performing a lossy or lossless save in the Save As dialog. The specified JPEG Quality level is not used in case of a lossless save (unless an inherently lossy operation was performed, of course).
Addresses issue #6
Signed-off-by: Madhav Kanbur firstname.lastname@example.org