A Robust Backpropagation-Free Framework for Images