added sprite map parsing