Added Implementation in create_primary_rays