Scale gifs when renderering to save work, fix linux compilation