add draw sprite function