Dynamic Hair Manipulation in Images and Videos