Custom spell frames corrupted?

So I’ve been trying to make a custom spell, however whenever I get to certain frames it gets corrupted when the frames load/leave.

http://puu.sh/oCaLs/7e62c887ee.png

I’m not sure how I get rid of this issue, any suggestions/changes that should be made?

Here’s the frames + Script

Are you using Feditor to add these?

Yup, I was using that. Not tried it for a while, but it always became corrupted, even when I made sure the palette was the same and everything.

Looks like some issue with TSA…