It seems jquery 1.4.2 uses the :after in css
to make it work I had to use
.ui-icon-custom:after {
background-image: url("images/image.png");
background-size: 18px 18px;
}
also to remove the circle gray background behind simply add the
ui-nodisc-icon
class to the link/button