Updated the main method because it was missing extensions where there was mixed case and extra f in tiff.