refactor animator for update_image and update_image_mix