can't you just do this?

#warning-img-1,
#warning-img-2, 
#warning-img-3,
... {
  background-image: url("images/warning.png");
  width: 16px;
  height: 16px;
}