added media attachments to view model