Allows you to grab an image source based on the attachment ID.
The function echoes out the image source based on the attachment ID and thumbnail size.
This function is very useful (and recommended) when using image IDs via Advanced Custom Fields.
If the last option is set to
true then the image source will be returned rather than echoed.