Repaint on src change #332

Resolves an issue with Safari browsers failing to display images with
the correct sizing
Code style fixes.
Merge branch 'jonathantneal-repaint-on-src-change'