Custom panel for drawing an image, source: wxWiki