Create image.php

I have got a functionality to integrate:
That is:
1. Upload original Image
2. Make thumb image of the same (Ratio vise)
3. Create circle Image of this image (I have used thumb image for this,we can also use original)
4. Merge images [place transparent image on circle image to give some design to circle image like frame.]

Tool used:
1. PHP gd library
2. PHP Imagick library