Solved some conversion errors from projection to pixel space