edit lab4 with ImageMagick