dark magic to render intensity profiles