pin it button loads all the images instead of specific image

Make sure that the url has been encoded  .

<a href=”http://pinterest.com/pin/create/button/?url=<?php echo urlencode($pinURL) ?>&media=<?php echo urlencode($imagePath); ?>&width100&description=<?php echo urlencode($pinDesc) ?>” class=”pin-it-button” count-layout=”horizontal”>Pin It</a>

<script type=”text/javascript” src=”http://assets.pinterest.com/js/pinit.js”></script>