Go to this Example

PHP Insert Image Demo