added dynamic sprite loading and parsing