Script to rename images with the wrong extension