Compression of Medical Images by Using Artificial Neural Networks