Bug fixed, for pages that don't contain an image field, imageSmart fails.

Added count check to ensure images contains 1 or more images.