<?php if ( has_post_thumbnail() ) { ?>
Is equivalent to:
<?php if ( (int) kd_mfi_get_featured_image_id( 'featured-image-2', 'page', 'full' ) != 0 ) { ?>
Then replace this:
<?php the_post_thumbnail(generalimage); ?>
With this:
<?php
if( class_exists( 'kdMultipleFeaturedImages' ) ) {
kd_mfi_the_featured_image( 'featured-image-2', 'page', 'full' );
}
?>