just off the top of my mind, I would try in main writing this:
Code:
function main()
{
...
set(Header,OVERLAY);
}



Also, If that doesn't work, Is there an alpha channel on your image? (I'm sure I'll be corrected by someone else if I'm wrong but that is my thinking)