This is an example of the responsive, user friendly HW Image Widget available for WordPress 3.5 and up. Its free for download from WordPress.org.
Did you know it sports the TinyMCE WYSIWYG editor for the text?
I found myself needing to change the end of line character in NetBeans. This was easily done by adding -J-Dline.separator=LF as a parameter to application launch path.