move pickRay example to graphics