Looking for Transform plugin

I am trying to put together a design tool for a companies website, I need something that would function similar to this: http://fancyproductdesigner.com/product/t-shirt/
But I was hoping for the ability to transform the images placed on the “canvas” so they had perspective. Anyone seen anything like this?

You can do it with imagemagick and there are a couple of examples on the forum; its just a matter of finding them!