don't bother showing save dialog if current image is null.
use QDir::match() to check file extensions.
restructured on_actionSaveAs_triggered()