a simple server side script to save image, which can be used in wordpress.