Deep learning solution for medical image localization and orientation detection