fixed track drawing error

fixed track drawing error
moved many options to an options struct