Fixed for the environment

Removed the background call and size call because they break the environment, moved the phase calculation to the draw method.