Image Processing Homework - iOS