A geometric setting for the quantum deformation of $GL_n$