[Not yet tested] Writing image processing pipeline