Refactor image processing
Add IPython notebook