removed setting imageframe bgcol
more robust image saving, trying figure.savefig() if possible