diff --git a/display-posts-shortcode-remote.php b/display-posts-shortcode-remote.php
index 727926b..acf2327 100644
--- a/display-posts-shortcode-remote.php
+++ b/display-posts-shortcode-remote.php
@@ -467,21 +467,25 @@ if ( ! class_exists( 'Display_Posts_Remote' ) ) {
$imageAttributes = $self->getImageAttributes( $atts );
- if ( $atts['image_size'] && $post->has_post_thumbnail() && $atts['include_link'] ) {
+ if( $atts['image_size'] && false !== filter_var( $atts['image_size'], FILTER_VALIDATE_BOOLEAN ) ) {
- $image = '' . $post->get_the_post_thumbnail( $atts['image_size'], $imageAttributes ) . ' ';
+ if ( $post->has_post_thumbnail() && $atts['include_link'] ) {
- } elseif ( $atts['image_size'] && $post->has_post_thumbnail() ) {
+ $image = '' . $post->get_the_post_thumbnail( $atts['image_size'], $imageAttributes ) . ' ';
- $image = '' . $post->get_the_post_thumbnail( $atts['image_size'], $imageAttributes ) . ' ';
+ } elseif ( $post->has_post_thumbnail() ) {
- } elseif ( $post->has_featured_media() && $atts['include_link'] ) {
+ $image = '' . $post->get_the_post_thumbnail( $atts['image_size'], $imageAttributes ) . ' ';
- $image = '' . $post->get_the_post_thumbnail( 'full', $imageAttributes ) . ' ';
+ } elseif ( $post->has_featured_media() && $atts['include_link'] ) {
- } elseif ( $post->has_featured_media() ) {
+ $image = '' . $post->get_the_post_thumbnail( 'full', $imageAttributes ) . ' ';
- $image = '' . $post->get_the_post_thumbnail( 'full', $imageAttributes ) . ' ';
+ } elseif ( $post->has_featured_media() ) {
+
+ $image = '' . $post->get_the_post_thumbnail( 'full', $imageAttributes ) . ' ';
+
+ }
}