Update upload.php

dynamic image resize