Bug 877727 - preview of attached image from gallery does not work r=gnarf37