Learned Image Compression and Restoration for Digital Pathology