Made code nicer

Closes https://github.com/PistonDevelopers/rust-graphics/issues/518