added figsize and savefig options