minor speedup and cleanup of drawing

Signed-off-by: Martin Ankerl <martin.ankerl@gmail.com>