Added sprite sheet calcuation.