Reverted back to using rmagick to see if it solves the "no such file or directory tmp/mini_magick..." error.