PHP 5.3+ resize an image, cache it and send back it's path