fixed the bug with the negative image height ray tracing