function resize_image($width, $height, $source, $destination) {
$src = imagecreatefromjpeg($source);
$img = imagecreatetruecolor($width, $height);
imagecopyresampled($img, $src, 0, 0, 0, 0, $width, $height, imagesx($src),imagesy($src));
// @unlink($destination);
imageJPEG($img, $destination);
}