fix tests from animated gif layers optimize change