Assignment 1 Image Processing Solution