Added a resize function (Needs ImageMagick)