Pneumonia detection using deep learning based chest x-ray image analysis and classification