added imagemagick tricks