respect for containers surrounding images
remove unnecessary attributes from XElements