Added more sprite handling routines