$title = apply_filters( 'widget_title', empty( $instance['generatewp_title'] ) ? '' : $instance['generatewp_title'], $instance, $this->id_base );
$image = apply_filters( 'widget_image', empty( $instance['generatewp_image'] ) ? '' : $instance['generatewp_image'], $instance );
echo $args['before_widget'];
if ( ! empty( $title ) ) {
echo $args['before_title'] . $title . $args['after_title'];
}