Implementing a non-4f relay system for Hartmann-Shack wavefront sensing