added basic image attachment parsing