Added functions necessary for determing the position of the animation index during drawing routines.