I tried to create buttons and insert my own images instead of the standard button images. However, the gray border from the standard buttons still remains, showing on the ou
The usual trick is to make the image itself part of a link instead of a button. Then, you bind the "click" event with a custom handler.
Frameworks like Jquery-UI or Bootstrap does this out of the box. Using one of them may ease a lot the whole application conception by the way.