Added optional height and width to attachments