a working prototype with libgd
hard to deside distorting
ImageMagick compiled
working ImageMagick implement
the basic finished version