The drone can turn now. 

Better controller settings are used now.
Besides, a method to turn 180 degrees is built in. This can easily be improved by adding a method that detects a turn.
Not only one line, but multiple lines can be detected now. The program then uses the line in the new image that is closest to the line used in the previous image. Thus, it can track the line now.