Preparation: Moved color code into one method

The method setupContext is now used to set up the drawing context for a
particular frame, setting its fill- and strokeStyle.