only print "Screenshot saved" message when saving succeeded.
some cleanup.