'robustify' my_savefig by adding call to ensure_dir

requires defaulting dir to './' instead of ''
use pylab's method of passing format