added trim to imagemagick