I've just made some simple modifications to the code (to give you an idea. Please check the attached code.
I used Draw, directly. and didn't bother fixing the rectangles part. But you can also draw the whole "sprite" (icon) into a image, then add text to it and then blit it to the draw, you'll likely get the same result.