Bug 1012663 - [SMS] Remove inline style for CSP compliance. Attachment.js refactoring.