Added rotate_on_gpu