update image frame animations code