Sam Zeloof, who is currently studying electrical engineering at Carnegie Mellon University as an undergraduate has taken an old Polaroid camera and retro-fitted it with a Raspberry Pi W, a camera module and a thermal printer. He added two LiPo batteries to provide the 7-8 volts needed by the printer and then programmed the whole thing to produce thermally-printed photographs whenever the trigger was pressed. You can read all about the project and how he did it over at IEEE Spectrum.