having trouble with imagemagick