adding rotation feature to rays overlay