moved first draw outside while loop

fixes #3