Variable-rate lossy compression and its effects on communication networks