Make image rendering more well-behaved.