input: Write a python function to create a bar plot from a given DataFrame and save it as an image.
  assert create_and_save_barplot(pd.DataFrame({'Name': ['Alice', 'Bob'], 'Age': [18, 25]}), 'test_plot.png') == True
  assert create_and_save_barplot(pd.DataFrame({'Name': ['Carol', 'Dave'], 'Age': [35, 45]}), 'test_plot2.png') == True
output: import pandas as pd
  import matplotlib.pyplot as plt
  
  def create_and_save_barplot(df, filename):
      try:
          df.plot(kind='bar', x='Name', y='Age')
          plt.savefig(filename)
          plt.close()
          return True
      except Exception as e:
          return False