Fix Discourse.Utilities.avatarImg test on Fx.
Fix Discourse.Utilities.avatarImg test on Fx.

This qUnit test was failing in Firefox 36 with "setting a property that has only a getter" because devicePixelRatio was being changed directly. The fix uses defineProperty to redefine devicePixelRatio instead.

natefinch/discourse,natefinch/discourse