Real-Time In-Network Image Compression via Distributed Dictionary Learning