The engine in that picture is powered by overhead lines, not batteries in the tender as was suggested, so does not prove that what was suggested is technically feasible.
The main technical issue would be energy density - even the best batteries available have nowhere near the energy density of...