attachments: added field 'type'
added save post options