Directional Lighting For Lionel Locomotive

Lionel track voltage 0 - 16 VAC. Direction is changed by dropping power to the rails twice. Locomotive is a single unit diesel. There are no headlights now. I would like to install LED lights on both ends and have them operate in the direction the locomotive is moving. Space in the body shell is limited to 1.25" wide, 3.0 " long, and 1.37" high.
I am looking for suggestions on how to do this. I would greatly appreciate and assistance provided.
Thank you.