Text this: Adaptive Gain and Analog Wavelet Transform for Low-Power Infrared Image Sensors