Ah I see it! I believe it's because the frame where the stick is extended is wider than the original image and because you draw it from the top left or bottom left corner, then it appears to be "lagging". The fix would be to draw the "attack" frame when moving left with an offset that is equal to (original image width) minus (attack image width).

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org