added functionality to rename images