I think it's important psychologically to 'go along' with the imaginary friend and not pooh pooh it. My mum used to say, "Will you please tell your friend Martin that if I find any more scribblings on the walls, he will get a smacked bottom." My sister twigged.