fix custom header image

If a custom header image was defined ansible was overwriting the wrong image.

also changed the way the header image tasks worked to just check if the variable was defined.