Removed dependency on imagemagick and libgif