added dataframe size check to set the sprite based on the datset size dynamically, as well as comments to clarify
added dataframe size check to set the sprite based on the datset size dynamically, as well as comments to clarify

PAIR-code/facets,PAIR-code/facets,PAIR-code/facets,PAIR-code/facets