Make sure we stay within our bounds. Also initialise the background to transparent so there's no data from past renders.
mentioned in commit 233df87c