As documented in the source code (TableHtmlRenderer#renderBlock()):
// TODO: What about attributes? If we got the renderer instead of the visitor, we could call getAttributes.
To be able to set custom attributes would be very handy especially when working with Tables!
More in general: IMO AttributeProvider should be working for all tags, including images.