The MaxEnt Method Applied to Spectral Analysis and Image Reconstruction