Now drawing bezier curves rather than straight lines (can still do with some improvements)