use external image for ui button

use external image for ui button

Hello, this is expected to use external icons in the buttons?
My question:
Can I use external image as an icon of a button.
I created several "sprite" with icons with a special CSS class can be used without ui-icon?




Exemple with similar class:
  1. $( ".demo button:first" ).button({
  2. icons: {
  3. primary: "my-icon-locked"
  4. },
  5. text: false
  6. })
or with icon png
  1. $( ".demo button:first" ).button({
  2. icons: {
  3. primary: "myicon.png"
  4. },
  5. text: false
  6. })
Best regards