adding ImageSpan, ImageRefSpan