Made a MyRepaintThread class to make animations with.