Added support for more than 255 animations

Changed byte to short type