Firstly, put the code inside the code tag please.
As to the problem of yours, the most common reason for seeing a white space instead of the respective texture is that the texture is out of scope. I suggest you to write/use a ResourceManager class, which will take care of it and you won't be bothered by this issue again.