Updated constructor. Was clipping at y instead of x.