changed checking os
added check and install for ImageMagick via yum