Rate-distortion methods for image and video compression | Synapse