Adaptive and Robust Image Processing on CubeSats