this is not so good idea to use a filter named "the_content" which is in use by wordpress also.
Now I added something on the "the_content" filter, but it showed up on the image widget as well, because of the same filter name.
This is the line in your files:
$output .= apply_filters( 'the_content', $instance['text'] );
You should use another name for it.