Fixed borrow mutable bug

Closes https://github.com/PistonDevelopers/rust-image/issues/27