fixed the drawtext a little, also some more optimisations