added BVHRefiner functionality

Wait for texture till it is completely loaded to gpu before rendering
and bug fixing in position calculation of the quads