<?php if (has_post_thumbnail() && rt_get_option('single_element_thumbnail', true)) : ?>
    <figure class="wp-block-post-featured-image rt-img">
        <?php the_post_thumbnail(rt_get_option('single_image_size', 'large'));  ?>
    </figure>
<?php endif ?>