Set up for jpeg