fixes viewport and background image