split banner drawing code

The code was getting to long, so I split it.