Replaced GD image resizing with ImageMagick call