Custom panel for for drawing an image, source: wxWiki