Added function for obtaining animation frame length.