Tool for editing images