switched to using pixels instead of nm when assigning rmax for correlation calculation