Image Processing (IP) examples and refactorings