implement sprite object parsing