All you do is replace the costumes with your own! (Also, store the costume # in the layers variable)
Thx @lienzli for original, and @leonardc95 for costume counting script.