<?php 
$image = get_field('foto');
if (!empty($image)) {  
echo '<div>'; 
echo '<img src="'.$image.'" height="500" width="500" alt=" " />'; 
echo '</div>'; 
}  else { 
echo ""; 
} 
?>