Got data uri handling working for attaching images.