Revamp Resize.php

This is a new version of Simple image. From my Apache2 logs, it has less errors than the old one