Accurate and Explainable Image-Based Prediction Using a Lightweight Generative Model