Imaging Based Beam Steering For Optical Communication And Lidar Applications