if image has no width, set up event handler for resizing. closes #633
Merge branch 'bugfix-issue-633' into develop