support loading sprites from a path