Completed image editing.

Pre-processing timing can be further improved
Magnetic lasso can be improved too.