Added sprite function