For the future, this can be done by defining our own filters, OR Use other filters implemented by other Python libraries for image-processing.