Set viewport and background image.