some work on sprite graphic loading method