relationship field: use wp_get_attachment_image instead of get_the_post_thumbnail when related post has post_type==attachment