Image instead beep

Hi, I have just one question: I do mathematics job on my computer and use one program. That program beep when specific number is found. I wont to "change" beep with any picture as notification.
This is part of code for "beeping"