screencasting: don't crash if the cursor is too big for our buffer
Make sure we stay within our bounds. Also initialise the background to transparent so there's no data from past renders.
Make sure we stay within our bounds. Also initialise the background to transparent so there's no data from past renders.