Bug 1025552 - [Messages][Refactoring] Refactor attachment.js and specifically move rendering part to a separate module. r=julienw

we also need to clear canvas created in imageToCanvas, but I think it's minor than image tag.