Replaced ImageMagick with ImageJ as an image processing library