Use local variables for fr in deform

Closes https://github.com/PistonDevelopers/graphics/issues/626