You can try something like where the links to the image downalod.php?img=sterling02
$image = isset($_GET['img']) ? $_GET['img'] : "noimage" ;
$image .= ".jpg";
header('Content-disposition: attachment; filename='.$image);
header('Content-Type: image/jpeg');
readfile($image);
But if you want to force the download then use
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Type: application/force-download");
header("Content-Type: application/octet-stream");
header("Content-Type: application/download");
header("Content-Transfer-Encoding: binary ");
header('Content-disposition: attachment; filename='.$image);
readfile($image);