Image resize server side with imagemagick