add data-images-only attribute if value is not required