Content-Aware Image Encoding