Bug 1082073 - [Messages] Use promises when resizing images r=schung

now, I think I remember I did this because it was cleaner, and because it was easier for unit tests; but I'm not sure it works with the new code from https://bugzilla.mozilla.org/show_bug.cgi?id=1071514 so I'll need to test.