Revamp Resize.php

This is a new version of Simple image. From my Apache2 logs, it has less errors than the old one. 

I still believe it needs work doing to it which I shall do.