Code change for sprite

Signed-off-by: jabb1123 <jr112394@gmail.com>