Tools for image processing