Added ability to specify frame count for animation loading