I tried this solution:
Blablabla
I also had the same issue. I've fixed it by using the following code.
Note: Make sure the build action of the image in the property window, should be Resource.
Resource