Update Ray.java

it is not necessary to create getHeight; height from header is accessible directly