Encryption-then-Compression System for Cloud-based Medical Image Services