switch bg to jpeg