A comparison of deep learning algorithms for medical image classification and image enhancement