Updated build script to use ruby magick