Hamilton agrees to make movie about his life