Task-Based Image Compression and X-Ray Threat Detection System Analysis