This bullet-proof thumbnail script finds all possible sources for a post or term’s image including WP’s native thumbnail, attachments, object content and meta