Updated image magick helper