graphics improvements

implemented double buffering to remove flickering