BTWF_animated_gif project to staging branch

If #663 is okay, this will take the same changes to staging.