If you create a new CustomControl and want to load an image from the resources you can use this method.
Because in CustomContorls you can not load the image with the path, therefore you have to load it directyl from the assembly.