How to use GD library. And, main task today is adding watermark to image and generate result as PNG image into browser.