Fix bug in attachment class.

Fixed a bug in the attachment class where style->value property was
still being referenced (instead of style->dimensions).