$image_array = wp_get_attachment_image_src(get_post_thumbnail_id($page_id), 'optional-size');
    $url = $image_array[0];
    ?>
					<div class="image" style="background: url('<?php 
    echo $url;
    ?>
') no-repeat center center; background-size: cover;"></div> 
				<?php 
}
?>
		</div>
	
		<div class="counter-map">
			<div class="counter">
			 	Days in jail: <span><?php 
echo days_in_jail();
?>
</span>
			</div>
			<div class="map-header"><?php 
the_title();
?>
 is currently imprisoned in <?php 
the_field("country_where_imprisoned");
?>
</div>
			
			<?php 
$location = get_field("link_to_map");
if (!empty($location)) {
    ?>
								<div class="info">	
									<h2 class="name"><?php 
        the_title();
        ?>
</h2>
									<h3 class="country"><?php 
        the_field("country");
        ?>
</h3>
									<div class="days-jailed">
										<?php 
        the_title();
        ?>
 has been in prison for
										<span><?php 
        days_in_jail();
        ?>
</span> days
										in <?php 
        the_field("country_where_imprisoned");
        ?>
 for the crime of being a journalist
									</div>
								</div>
							</a>
							<div class="social-media">	
								<a href="">
									<i class="fa fa-facebook"></i>
								</a>
								<a href="https://twitter.com/share?text=<?php 
        the_title();