I have created a function that filters an image based on the filter_type, and creates a file. For example, if the filtered image is greyscale, a new file is generated in the