Bug 877727 - preview of attached image from gallery does not work r=gnarf37
(cherry picked from commit d1b14748a9f4e7beab522ef0bbbcd2f790f09969)