fix(avatars): clean up numerous issues from comments in #1405

This fixes #1462 and various issues raised by @pdehaan @shane-tomlinson and @ckarlof.

@shane-tomlinson r?
None needed– it's caught in the view  and a generic "unusable image" error is shown.