Added implementation for the image processing algorithms