Reduce image size before sending