To ensure the view is cleared before rendering you need to ensure you have a background layer with just a plain colour (ie. no sprite) at the bottom of your layers list. When you create a new room you are given an instance layer and a background layer by default, instead of changing the sprite on the default background layer create a new background layer and set it up with the sprite instead.