Resize and compress images before sending