Save images via "toimage" to avoid dynamic range rescaling.