Pneumonia detection in chest X-ray images using compound scaled deep learning model