Modify the attribute rel selector

This way avoid the bug of not group images that have more than one attribute on rel.