Editing images in the command-line