send a paint event, otherwise the image won't appear

This problem happens on my mac (Lion 10.8.2) and the solution works.