Valid image format checking was moved to exportdiagramdialog.cpp