Fast code-rate optimization for robust image transmission over lossy packet networks