clone from http://code.google.com/p/pidgin-sendscreenshot